#include "cond2.h"
#include <iostream>
using namespace std;

int testCond2(unsigned char *sbox) {
	for(unsigned char d_input = 1; d_input < 16; d_input <<= 1) {
		for(unsigned char d_output = 1; d_output < 16; d_output <<= 1) {
			for(unsigned char x = 0; x < 16; ++x) {
				if((sbox[x] ^ sbox[x ^ d_input]) == d_output)
					return 1;		
			}
		}
	}
	
	return 0;
}
